﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using MIMSDomain.Entities;

namespace MIMSDomain.Concrete
{
    [DbModelBuilderVersion(DbModelBuilderVersion.V5_0)]
    public class EFDbContext : DbContext
    {

        public DbSet<Patient> Patients
        {
            get;
            set;
        }

        public DbSet<Tribe> Tribes
        {
            get;
            set;
        }

        public DbSet<Religion> Religions
        {
            get;
            set;
        }

        public DbSet<Occupation> Occupations
        {
            get;
            set;
        }

        public DbSet<NextOfKin> NextOfKins
        {
            get;
            set;
        }

        public DbSet<Genotype> Genotypes
        {
            get;
            set;
        }

        public DbSet<BloodGroup> BloodGroups
        {
            get;
            set;
        }

        public DbSet<Allergy> Allergies
        {
            get;
            set;
        }

        public DbSet<MedicalPersonnel> MedicalPersonnels
        {
            get;
            set;
        }

        public DbSet<MedicalFacility> MedicalFacilities
        {
            get;
            set;
        }

        public DbSet<SurgicalHistory> SurgicalHistories
        {
            get;
            set;
        }

        public DbSet<ObstetricHistory> ObstetricHistories
        {
            get;
            set;
        }

        public DbSet<DrugHistory> DrugHistories
        {
            get;
            set;
        }

        public DbSet<FamilyHistory> FamilyHistories { get; set; }
        public DbSet<FamilyTree> FamilyTrees { get; set; }
    }

}
